#ifndef CIRCLEWIDGET_H
#define CIRCLEWIDGET_H

#include <QtGui/QWidget>
#include "ui_circlewidget.h"

class CircleWidget: public QWidget {
Q_OBJECT

public:
	CircleWidget(QWidget *parent = 0);
	~CircleWidget();

public:
	int getCellX() const {
		return cellX;
	}
	int getCellY() const {
		return cellY;
	}

protected:
	virtual void paintEvent(QPaintEvent * event);

	virtual void resizeEvent(QResizeEvent * event);

	virtual void mouseMoveEvent(QMouseEvent * event);

signals:
	void cellXChanged(int newCellX);
	void cellYChanged(int newCellY);

private:
	Ui::CircleWidgetClass ui;

	int leftTopX, leftTopY, cellWidth, cellHeight;

	int mousePosX, mousePosY;
	int cellX, cellY;
};

#endif // CIRCLEWIDGET_H
